package com.qyhl.webtv.module_circle.serviceimpl;

import android.content.Context;

import androidx.fragment.app.Fragment;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.qyhl.webtv.basiclib.base.BaseFragment;
import com.qyhl.webtv.commonlib.constant.ServicePathConstant;
import com.qyhl.webtv.commonlib.service.CircleService;
import com.qyhl.webtv.commonlib.utils.inter.HomeActivityInterface;
import com.qyhl.webtv.module_circle.circle.home.CircleHomeFragment;
import com.qyhl.webtv.module_circle.circle.msg.chat.ChatMessageFragment;
import com.qyhl.webtv.module_circle.circle.party.PartyCircleFragment;
import com.qyhl.webtv.module_circle.common.CircleUtils;

/**
 * 圈子消息服务类
 *
 * @author helin
 * @date 2019年6月3日17:36:30
 */
@Route(path = ServicePathConstant.CIRCLE_SERVICE)
public class CircleServiceImpl implements CircleService {
    @Override
    public void getCircleMessage(CircleMessageCallBack callBack) {
        CircleUtils.getCircleMessage(callBack);
    }

    @Override
    public BaseFragment getCircleHomeFragment(String menuName, HomeActivityInterface homeActivityInterface) {
        return CircleHomeFragment.newInstance(menuName, homeActivityInterface);
    }

    @Override
    public Fragment getChatMessageFragment() {
        return ChatMessageFragment.newInstance();
    }

    @Override
    public BaseFragment getPartyCircleFragment(String circleId) {
        return PartyCircleFragment.newInstance(circleId);
    }

    @Override
    public void init(Context context) {

    }
}
